package com.xiaodou.mjf.application.core.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import com.xiaodou.mjf.application.core.repository.WithdrawalRecordRepository;
import com.xiaodou.mjf.application.core.service.WithdrawalRecordService;
import com.xiaodou.mjf.entity.core.WithdrawalRecord;
import com.xiaodou.mjf.infrastructure.common.app.JpaSimpleService;

/***
 *
 * WithdrawalRecord业务访问实现
 * 
 * @author XiaoDou.com Code Generator
 * @version 1.0 2014-10-29 17:37:52
 *
 */
@Service
@Transactional
public class WithdrawalRecordServiceImpl extends JpaSimpleService<WithdrawalRecord, String> implements WithdrawalRecordService {

	Logger logger = LoggerFactory.getLogger(WithdrawalRecordServiceImpl.class);

	@Resource
	WithdrawalRecordRepository withdrawalRecordRepository;

	@Override
	protected JpaRepository<WithdrawalRecord, String> getRepository() {
		return withdrawalRecordRepository;
	}

	@Override
	public List<WithdrawalRecord> getOrderUnPayment() {
		return withdrawalRecordRepository.getOrderUnPayment();
	}
}
